#include "isAttention.h"
bool isAttention(std::vector<std::pair<int, int>> &t) {
  int end = -1;
  std::sort(t.begin(), t.end());
  for (auto i : t) {
    if (i.first >= end)
      end = i.second;
    else
      return false;
  }
  return true;
}
